package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 消息设置表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-12
 */
@TableName("bus_msg_config")
public class MsgConfig extends Model<MsgConfig> {

	private static final long serialVersionUID = 1L;

	/**
	 * 管理员消息配置Id
	 */
	@TableId(value = "msg_config_id", type = IdType.AUTO)
	private Integer msgConfigId;
	/**
	 * 消息名称
	 */
	private String name;
	/**
	 * 消息类型(1用户消息2服务消息3订单消息/支付消息)
	 */
	@TableField("msg_type")
	private Integer msgType;
	/**
	 * 消息类别（0：用户消息，1：管理员消息）
	 */
	@TableField("msg_category")
	private Integer msgCategory;
	
	/**
	 * 接收角色
	 */
	@TableField("role_ids")
	private String roleIds;
	/**
	 * 是否是站内通知（0：否，1：是）
	 */
	@TableField("if_station")
	private Integer ifStation;
	/**
	 * 是否是邮件通知（0：否，1：是）
	 */
	@TableField("if_email")
	private Integer ifEmail;

	@TableField("tip")
	private String tip;

	public Integer getMsgConfigId() {
		return msgConfigId;
	}

	public void setMsgConfigId(Integer msgConfigId) {
		this.msgConfigId = msgConfigId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getMsgType() {
		return msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	public Integer getMsgCategory() {
		return msgCategory;
	}

	public void setMsgCategory(Integer msgCategory) {
		this.msgCategory = msgCategory;
	}

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	public Integer getIfStation() {
		return ifStation;
	}

	public void setIfStation(Integer ifStation) {
		this.ifStation = ifStation;
	}

	public Integer getIfEmail() {
		return ifEmail;
	}

	public void setIfEmail(Integer ifEmail) {
		this.ifEmail = ifEmail;
	}

	@Override
	protected Serializable pkVal() {
		return this.msgConfigId;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	@Override
	public String toString() {
		return "MsgConfig{" + "msgConfigId=" + msgConfigId + ", name=" + name + ", msgType=" + msgType
				+ ", msgCategory=" + msgCategory + ", roleIds=" + roleIds + ", ifStation=" + ifStation + ", ifEmail="
				+ ifEmail + ", tip=" + tip + "}";
	}

	public MsgConfig() {
		super();
	}

	public MsgConfig(String name) {
		super();
		this.name = name;
	}

}
